  <?php
include_once "../librari/koneksi.php";
$item = $_GET['id'];
$sql = "select * from tes where idTes=".$item;

$id="";
$tes="";
$bobot="";
$result = mysql_query($sql);
while ($row = mysql_fetch_array($result)) {
   $id=$row['idTes'];
   $tes=$row['nmTes'];
   $bobot=$row['bobot'];
   }

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>ubahtes</title>

<link href="styleadmin.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="styleadmin.css" type="text/css" />

</head>

<body>
<div id="header">
    <img src="image/logokanisius1.gif" class="logo" />
</div>

<div id="garis">
</div>
<div id="contenthome">
<div id="leftcontenthome">
<form id="form1" name="form1" method="post" action="ubah_tes.php">
<table width="450" border="0" cellspacing="2" cellpadding="0" class="keliling">
    <tr bgcolor="#F48021"> 
      <td colspan="2" align="center"><b>UBAH TES</b></td>
    </tr>
    <tr> 
      <td width="125" align="right">Id Tes : </td>
      <td width="317">
	    <input name="TxtKode" type="text" size="6" maxlength="4" value="<?php echo $id; ?>" > 
        </td>
    </tr>
    <tr> 
      <td align="right">Tes : </td>
      <td><input name="Txttes" type="text" value="<?php echo $tes; ?>" size="46" maxlength="60"></td>
    </tr>
    <tr> 
      <td align="right">Bobot : </td>
      <td><input name="Txtbobot" type="text" value="<?php echo $bobot; ?>" size="10" maxlength="15">
      </td>
    </tr>
	<tr> 
      <td>&nbsp;</td>
      <td>
        <label>
          <input type="submit" name="Submit" value="UBAH" />
          </label>
      
      </td>
    </tr>
  </table>
  </form>
  </div>
</div>
</body>
</html>
<?
ob_end_flush();
?>